import { computed, onUpdated, ref } from "vue"

export function useTimekeeping() {
    const startTime = ref(performance.now())
    onUpdated(() => {
        startTime.value = performance.now()
    })
    return computed({
        get: () => {
            return performance.now() - startTime.value
        },
        set: () => {},
    })
}
